package org.alexl.webhook.servlet;

import org.alexl.webhook.PureWebhookApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * 支持以war的形式发布
 * 
 * @author Alexander
 */
public class ServletInitializer extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(PureWebhookApplication.class);
    }

}
